//package Test;
//
//import Game.LoginJFrame;
//import Game.RegisterJFrame;
//
//import javax.swing.*;
//import java.awt.event.*;
//import java.security.Key;
//
///**
// * @program: pintu
// * @description:
// * @author: davidzhan
// * @create: 2025-04-01 16:44
// **/
//public class MyJFrame extends JFrame implements MouseListener {
//
//    JButton button = new JButton("注册");
//    JButton button1 = new JButton("登录");
//    public MyJFrame() {
//        this.setSize(600, 400);
//        this.setTitle("拼图游戏");
//        this.setAlwaysOnTop(true);
//        this.setLocationRelativeTo(null);
//        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
//        this.setLayout(null);
//
//        button.setBounds(200, 200, 100, 50);
////        button.addActionListener(new ActionListener() {
////            @Override
////            public void actionPerformed(ActionEvent e) {
////                System.out.println("点击了按钮");
////            }
////        });
//        button.addActionListener(this);
//        this.getContentPane().add(button);
//        button1.setBounds(200, 300, 100, 50);
//        button1.addActionListener(this);
////        button1.addActionListener(new ActionListener() {
////            @Override
////            public void actionPerformed(ActionEvent e) {
////                System.out.println("点击了按钮");
////            }
////        });
//        this.getContentPane().add(button1);
//        this.setVisible(true);
//    }
//
//    @Override
//    public void mouseClicked(MouseEvent e) {
//
//
//    }
//
//    @Override
//    public void mousePressed(MouseEvent e) {
//
//    }
//
//    @Override
//    public void mouseReleased(MouseEvent e) {
//
//    }
//
//    @Override
//    public void mouseEntered(MouseEvent e) {
//
//    }
//
//    @Override
//    public void mouseExited(MouseEvent e) {
//
//    }
//
////    @Override
////    public void keyTyped(KeyEvent e) {
////
////    }
////
////    @Override
////    public void keyPressed(KeyEvent e) {
////        if (e.getKeyCode() == KeyEvent.VK_ENTER) {
////
////        }
////
////    }
////
////    @Override
////    public void keyReleased(KeyEvent e) {
////
////    }
//
////    @Override
////    public void actionPerformed(ActionEvent e) {
////        Object source = e.getSource();
////        if (source == button) {
////            System.out.println("11");
////        }else if (source == button1) {
////            System.out.println("22");
////        }
////    }
//
////    @Override
////    public void keyTyped(KeyEvent e) {
////
////    }
////
////    @Override
////    public void keyPressed(KeyEvent e) {
////
////    }
////
////    @Override
////    public void keyReleased(KeyEvent e) {
////
////    }
//}
